package cn.easybuy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.easybuy.entity.News;
import cn.easybuy.param.NewsParams;

@Repository
public interface NewsMapper {
	public void add(News news);
	public void update(News news);
	public void deleteById(Integer id);
	public News getNewsById(Integer id); 
	public List<News> queryNewsList(NewsParams params); 
	public Integer queryNewsCount(NewsParams params);
}
